package com.gitee.common.data.tree;

import com.gitee.common.data.tree.node.AbstractTreeItemNode;
import com.gitee.common.data.tree.node.OneNextSimpleTreeItemNode;

public class TreeNodeFactory {

    public static final int ONE_ZERO = 0x0100;
    public static final int ONE_ONE = 0x0101;
    public static final int ONE_MORE = 0x0110;
    public static final int ZERO_ONE = 0x0001;
    public static final int MORE_ONE = 0x1001;
    public static final int MORE_ZERO = 0x1000;
    public static final int ZERO_MORE = 0x0010;
    public static final int MORE_MORE = 0x1010;
    public static final int ZERO_ZERO = 0x0000;

    public static AbstractTreeItemNode createInstance(int nodeType) {
        switch (nodeType) {
            case ONE_ZERO :
                return new OneNextSimpleTreeItemNode();
            default:
                break;
        }
        return null;
    }

}
